package com.atguigu.gulimall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: fd
 * @createTime: 2020-06-23 20:28
 **/

@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {

    /**
     *核心线程数
     */
    private Integer coreSize;
    /**
     *最大线程数
     */
    private Integer maxSize;
    /**
     *存活时间
     */
    private Integer keepAliveTime;

}
